import request from "@/utils/request";

// 小区列表
export async function areaList(params?: any) {
	return request("/area/list", {
		params,
	});
}
// 更改状态
export async function status(data: any) {
	return request("/shopAdmin/add", {
		method: "POST",
		data,
	});
}
// 根据id删除商家管理员
export async function remove(id: any) {
	return request("/shopAdmin/del", {
		method: "POST",
		data: {
			id,
		},
	});
}

// 获取坐标点
export async function ordinate(params: any) {
	return request("/community/list", {
		method: "GET",
		params,
	});
}

export async function communityStatistics(params: any) {
	return request("/user/user-community-statistics", {
		method: "GET",
		params,
	});
}

//获取社区列表
export async function regionData(params: any) {
	return request("/region/child-list", {
		method: "GET",
		params,
	});
}

//获取社区下小区列表
export async function regionCommunity(params: any) {
	return request("/community/list", {
		method: "GET",
		params,
	});
}
